package com.llynic.designdemo.proxymode.jdk;


/**
 * jdk 动态代理 是面向接口的代理
 */
public class App {

    public static void main(String[] args) {
        SubObject subObject = new SubObject();
        ProxyInterface target = new TargetObject();
        ProxyInterface proxyObject  = (ProxyInterface) ProxyObject.proxy(target);
        subObject.dating(proxyObject);
    }
}
